package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DraftDealResponse;
import com.chinaums.fsp.sdk.pgt.params.DraftErrorFeedbackRequest;

/**
 * 汇票差错处理反馈
 * @author hty
 *
 */
public class DraftErrorHandleTest extends BaseRequest{
	public void test() throws Exception {
		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.TRANSACTION_ERROR_FEEDBACK.getTransCode());
		DraftErrorFeedbackRequest data = DraftErrorFeedbackRequest.newBuilder()
				.setInvoiceNo("231310002005220190429389362428")
				.setOrigServerTransId("1101012019122310264590840200")
				.setErrorHandle(0)
				.setRemark("大家好")
				.build();

		rf.transType(TransType.TRANSACTION_ERROR_FEEDBACK.getTransCode())
		.responseClass(DraftDealResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();

		this.print(rdw);
		
	}

}
